import React, { useEffect } from 'react';

export default function Thousand() {
    useEffect(() => {
        
        const seperate3 = (str) => {
            let result = '';
            while (str.length > 3) {
                result = ',' + str.slice(-3) + result;  
                str = str.slice(0, str.length - 3);
            }

            if (str) {
                result = str + result;
            }
            return result;
        };
        console.log(seperate3('123sdfsdfsd'));
    });
    return (
        <div>
            Thousand
        </div>
    );
}